package com.scalar.chiptrack.adaptor.jsi;

/**
 * Created by IntelliJ IDEA.
 * User: Sudhakar
 * Date: Mar 21, 2007
 * Time: 4:21:49 PM
 */
public class JSIFGStatus
{

    String stockCode;
    String partNumber;
    String countryofOrigin;
    String containerID;
    String dateofReciept;
    String lotNumber;
    String dateCode;
    String location;
    String uom;
    String qtyAailable;
    String qtyAllocated;
    String qtyReserved;

    public String getStockCode() {
        return stockCode;
    }

    public void setStockCode(String stockCode) {
        this.stockCode = stockCode;
    }

    public String getPartNumber() {
        return partNumber;
    }

    public void setPartNumber(String partNumber) {
        this.partNumber = partNumber;
    }

    public String getCountryofOrigin() {
        return countryofOrigin;
    }

    public void setCountryofOrigin(String countryofOrigin) {
        this.countryofOrigin = countryofOrigin;
    }

    public String getContainerID() {
        return containerID;
    }

    public void setContainerID(String containerID) {
        this.containerID = containerID;
    }

    public String getDateofReciept() {
        return dateofReciept;
    }

    public void setDateofReciept(String dateofReciept) {
        this.dateofReciept = dateofReciept;
    }

    public String getLotNumber() {
        return lotNumber;
    }

    public void setLotNumber(String lotNumber) {
        this.lotNumber = lotNumber;
    }

    public String getDateCode() {
        return dateCode;
    }

    public void setDateCode(String dateCode)
    {
        if( dateCode != null && dateCode.trim().length() == 3)
        {
            dateCode = "0" + dateCode;
        }
        this.dateCode = dateCode;
    }

    public String getLocation() {
        return location;
    }

    public void setLocation(String location) {
        this.location = location;
    }

    public String getUom() {
        return uom;
    }

    public void setUom(String uom) {
        this.uom = uom;
    }

    public String getQtyAailable() {
        return qtyAailable;
    }

    public void setQtyAailable(String qtyAailable) {
        this.qtyAailable = qtyAailable;
    }

    public String getQtyAllocated() {
        return qtyAllocated;
    }

    public void setQtyAllocated(String qtyAllocated) {
        this.qtyAllocated = qtyAllocated;
    }

    public String getQtyReserved() {
        return qtyReserved;
    }

    public void setQtyReserved(String qtyReserved) {
        this.qtyReserved = qtyReserved;
    }

    public String getVendorLotNumber()
    {
        String vendorLot = null;
        if( lotNumber != null && dateCode != null )
        {
            vendorLot = lotNumber + "-" + dateCode;
        }

        return vendorLot;
    }
}
